package dir1;

import java.util.LinkedList;

import luchbox.SHOP;

public class Update {
	private int shopid;
	private String shop_number;
	private String shop_name;
	private String shop_phone;
	private String shop_address;
	private String exe;
	private String path;
	private LinkedList<String> outcome = new LinkedList<>();
	
	public String getShop_number() {
		return shop_number;
	}
	public void setShop_number(String shop_number) {
		this.shop_number = shop_number;
	}	
	public int getShopid() {
		return shopid;
	}
	public void setShopid(int shopid) {
		this.shopid = shopid;
	}
	public String getShop_name() {
		return shop_name;
	}
	public void setShop_name(String shop_name) {
		this.shop_name = shop_name;
	}
	public String getShop_phone() {
		return shop_phone;
	}
	public void setShop_phone(String shop_phone) {
		this.shop_phone = shop_phone;
	}
	public String getShop_address() {
		return shop_address;
	}
	public void setShop_address(String shop_address) {
		this.shop_address = shop_address;
	}
	public String getExe() {
		SHOP sh = new SHOP();
		if(shop_number==null || shop_name==null ||shop_phone==null || shop_address==null){
			path = "update_F.jsp";
		}
		else{
			int x = sh.update(shop_number, shop_name, shop_phone, shop_address, "4", shopid);		
			System.out.println(x);
			path = "update_T.jsp";			
		}
		return null;
	}
	public void setExe(String exe) {
		this.exe = exe;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public LinkedList<String> getOutcome() {
		return outcome;
	}
	public void setOutcome(LinkedList<String> outcome) {
		this.outcome = outcome;
	}
	
	

}
